package com.tv.cms.authcode.service.impl;

import com.github.yulichang.base.MPJBaseServiceImpl;
import com.tv.cms.authcode.mapper.AuthCodeMapper;
import com.tv.cms.authcode.model.AuthCode;
import com.tv.cms.authcode.model.AuthCodeExport;
import com.tv.cms.authcode.service.AuthCodeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @author
 * @date
 **/
@Service
public class AuthCodeServiceImpl extends MPJBaseServiceImpl<AuthCodeMapper,AuthCode> implements AuthCodeService {
    @Resource
    private AuthCodeMapper mapper;
    @Override
    public int insertAuthCode(AuthCode authCode) {
        return mapper.insertAuthCode(authCode);
    }

    @Override
    public List<AuthCode> list(AuthCode authCode) {
        return mapper.list(authCode);
    }
    @Override
    public List<AuthCodeExport> exportList(AuthCodeExport authCode) {
        return mapper.exportList(authCode);
    }
    @Override
    public int count(AuthCode authCode) {
        return mapper.count(authCode);
    }

    @Override
    public int update(AuthCode authCode) {
        return mapper.update(authCode);
    }
}
